package com.tiepbm.cucphamgiadinh.activity;


import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.tiepbm.cucphamgiadinh.R;

public class SplashActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		Timer time = new Timer();
		time.schedule(new TimerTask() {

			@Override
			public void run() {
				 Intent intent = new Intent(SplashActivity.this, HomeActivity.class);
				 startActivity(intent);
				 finish();
			}
		}, 5000);
	}

}
